<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: yangweijie <yangweijiester@gmail.com> <code-tech.diandian.com>
// +----------------------------------------------------------------------
namespace Admin\Model;
use Think\Model;

/**
 * 购物车展示
 * @author yangweijie <yangweijiester@gmail.com>
 */

class CartModel extends Model
{
    /*show方法 */
    public  function show()
    {
        $data   = $this->select();
        $status = ['未处理','已处理'];
        foreach ($data as $key =>&$val) {
            $list = [];

            //显示购物车状态
            $val['status'] = $status[ $val['status'] ];

            //显示时间
            $val['ctime'] = date('Y-m-d' , time());
        }
        
        return $data;
    }


}
